package com.sj.parksdk.model.bean;

public class NearbyParkBean {

    private String name;
    private String address;
    private String describe;
    private int count;
    private String iconUrl;
    private String id;
    private double distance;

    public NearbyParkBean() {
    }

    public NearbyParkBean(String name, String address, String describe, int count,double distance, String iconUrl, String id) {
        this.name = name;
        this.address = address;
        this.describe = describe;
        this.count = count;
        this.distance = distance;
        this.iconUrl = iconUrl;
        this.id = id;
    }

    public NearbyParkBean(String name, int count, String id, double distance) {
        this.name = name;
        this.count = count;
        this.id = id;
        this.distance = distance;
    }

    public double getDistance() {
        return distance;
    }

    public String getDistanceStr(){
        if(distance>1000)return distance/1000 +"km";
        return distance +"m";
    }

    public NearbyParkBean setDistance(double distance) {
        this.distance = distance;
        return this;
    }

    public String getId() {
        return id;
    }

    public NearbyParkBean setId(String id) {
        this.id = id;
        return this;
    }

    public String getName() {
        return name;
    }

    public NearbyParkBean setName(String name) {
        this.name = name;
        return this;
    }

    public String getAddress() {
        return address;
    }

    public NearbyParkBean setAddress(String address) {
        this.address = address;
        return this;
    }

    public String getDescribe() {
        return describe;
    }

    public NearbyParkBean setDescribe(String describe) {
        this.describe = describe;
        return this;
    }

    public int getCount() {
        return count;
    }

    public NearbyParkBean setCount(int count) {
        this.count = count;
        return this;
    }

    public String getIconUrl() {
        return iconUrl;
    }

    public NearbyParkBean setIconUrl(String iconUrl) {
        this.iconUrl = iconUrl;
        return this;
    }
}
